package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.javaBean.FlipBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * author: FHP
 * data: on 2018\1\30 0030 14:41
 * E-Mail: 103945089@qq.com
 */
class FlipModule {
    interface OnFlipListener{
        fun onResp(baseBean: FlipBean)
    }

    fun flip(params: HttpParams,listener: OnFlipListener){
        UrlApis.flip(params)
                .subscribe {
                    data->
                    listener.onResp(data)
                }
    }
}